﻿namespace com.stifel.BranchMgmtDao
{
    using com.stifel.SharePoint;

    using Microsoft.SharePoint;

    public class StifelBaseDao : BaseDao
    {
        #region Fields

        string _ConfiguredWebUrl;

        #endregion Fields

        #region Constructors

        public StifelBaseDao( string listName )
            : base(listName)
        {
        }

        #endregion Constructors

        #region Properties

        protected string ConfiguredWebUrl
        {
            get
            {
                if ( string.IsNullOrEmpty( _ConfiguredWebUrl ) )
                {
                    string siteUrl = SPContext.Current.Site.Url;
                    _ConfiguredWebUrl = siteUrl;
                }
                return _ConfiguredWebUrl;
            }
        }

        #endregion Properties
    }
}